/**
 * @轮子的作者: 轮子哥
 **/
import { request } from '../https/request.js';
//查询游戏
export function getGame(params) {
    return request('/kyy/game/page', 'GET', params);
}

//增加点击
export function addClick(params) {
    return request('/kyy/game/addClick', 'POST', params);
}
//增加打开
export function addOpen(params) {
    return request('/kyy/game/addOpen', 'POST', params);
}

//获取配置
export function getConfig(params) {
    return request('/kyy/config/page', 'GET', params);
}

//获取帖子
export function getForum(params) {
    return request('/kyy/forum/page', 'GET', params);
}

//获取帖子详情
export function getForumById(params) {
    return request(`/kyy/forum/${params}`, 'GET');
}

//获取个人帖子
export function getForumMe(params) {
    return request('/kyy/forum/page/me', 'GET',params);
}

//获取帖子回复
export function getForumReplay(params) {
    return request('/kyy/replay/page', 'GET', params);
}

//获取关于我的回复
export function getForumReplaAboutyMe(params) {
    return request('/kyy/replay/about/me', 'GET', params);
}

//获取openid
export function getOpenID(params) {
    return request('/kyy/forum/getOpenID?code=' + params, 'GET');
}

//检测文字
export function checkText(params1, params2) {
    return request('/kyy/forum/checkText?text=' + params1 + '&openid=' + params2, 'GET');
}

//发布帖子回复
export function pushForumReplay(params) {
    return request('/kyy/replay/push', 'POST', params);
}

//发布帖子
export function pushForum(params) {
    return request('/kyy/forum/push', 'POST', params);
}

//帖子浏览量+1
export function addForumViewAdd(params) {
    return request('/kyy/forum/num1/add?id=' + params, 'GET');
}
//帖子点赞
export function addForumLikeAdd(params) {
    return request('/kyy/forum/num3/add?id=' + params, 'GET');
}
//获取该用户在该帖子的点赞状态
export function getForumLikeStatus(params) {
    return request('/kyy/forum/like/style?id=' + params, 'GET');
}